import { createApp } from "vue";
import "./style.css";
import App from "./App.vue";
import "vue-virtual-scroller/dist/vue-virtual-scroller.css";
import VirtualScroller from "vue-virtual-scroller";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import directive from "@/directives";
import ModalPlugin from "./plugins/toast/index.js";

const app = createApp(App);
// app.use(VirtualScroller)
directive(app);
app.use(VirtualScroller).use(ElementPlus).mount("#app");
app.use(ModalPlugin);

app.config.errorHandler = (err, instance, info) => {
  console.error(err, instance, info);
};

app.config.performance = true;
